const dbTools = require('./databaseTool');


const args = process.argv.splice(2);

if(args[0] === "init"){
    dbTools.initDataBase().then(()=>{
	dbTools.clearBlock().then(()=>{
	    console.log("clear table block success");
	    dbTools.reloadData(()=>{
		process.exit();
	    });
	});
    })
}

